/*
 * 7.2.cpp
 *
 *  Created on: 2012-5-18
 *      Author: jawinton
 */

#include <iostream>
#include <cstring>
#include <cstdio>
#include <cstdlib>

using namespace std;

#define SIZE 210

unsigned int a[SIZE];
unsigned int b[SIZE];
unsigned int c[SIZE+SIZE];

int main (void) {
	memset(a, 0, sizeof(a));
	memset(b, 0, sizeof(b));
	memset(c, 0, sizeof(c));
	char a1[SIZE], b1[SIZE];
	cin >> a1 >> b1;
	int alen = strlen(a1);
	int blen = strlen(b1);
	for (int i=0; i<alen; i++)
		a[alen-i-1] = a1[i]-'0';
	for (int i=0; i<blen; i++)
		b[blen-i-1] = b1[i]-'0';
	for (int i=0; i<blen; i++) {
		for (int j=0; j<alen; j++) {
			c[i+j] += a[j] * b[i];
		}
	}
	for (int i=0; i<alen+blen; i++) {
		c[i+1] += c[i]/10;
		c[i] %= 10;
	}
	int i;
	for (i=alen+blen; c[i]==0; i--);
	while (i>=0) {
		cout << c[i];
		i--;
	}
	cout << endl;
	return 0;
}
